package com.longnuoqi.mydoctor.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Lenovo on 2016/1/11.
 */
public class Favorite implements Parcelable {
    private int id;
    private String type;
    private String time;
    private String title;
    private String url;

    public Favorite() {
    }

    protected Favorite(Parcel in) {
        id = in.readInt();
        type = in.readString();
        time = in.readString();
        title = in.readString();
        url = in.readString();
    }

    public static final Creator<Favorite> CREATOR = new Creator<Favorite>() {
        @Override
        public Favorite createFromParcel(Parcel in) {
            return new Favorite(in);
        }

        @Override
        public Favorite[] newArray(int size) {
            return new Favorite[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(type);
        dest.writeString(time);
        dest.writeString(title);
        dest.writeString(url);
    }
}
